package com.praxinfosystems.sarthak.daoUtil;

import java.sql.ResultSet;
import java.sql.SQLException;


import org.springframework.jdbc.core.RowMapper;

import com.praxinfosystems.sarthak.domain.User;

public class UserRowMapper implements RowMapper<User>{
	
	@Override
	public User mapRow(ResultSet rs, int rowNum) throws SQLException {
		User user =new User();
		user.setName(rs.getString("name"));
		user.setRole(rs.getString("user_role"));
		user.setPassword(rs.getString("password"));
		
		return user;
	}

}
